package cn.com.generaldata.jsme_indicator_system.entity;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

/**
 * 国民经济产业分类代码表.
 */
@Table("tbl_dustry")
public class Dustry implements java.io.Serializable {

	private static final long serialVersionUID = -2217091626310445329L;

	// columns START
	/**
	 * 主键 db_column: id
	 */
	@Name
	@Column("id")
	private String id;
	/**
	 * 产业代码 db_column: code
	 */
	@Column("code")
	private String code;
	/**
	 * 产业名称 db_column: name
	 */
	@Column("name")
	private String name;
	/**
	 * 年份 db_column: year
	 */
	@Column("year")
	private Integer year;
	/**
	 * 是否需要计算1:是 db_column: enable
	 */
	@Column("enable")
	private Integer enable;

	// columns END
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	@Override
	public String toString() {
		return "Dustry [id=" + id + ", code=" + code + ", name=" + name + ", year=" + year + ", enable=" + enable + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		Dustry other = (Dustry) obj;
		if (id == null) {
			if (other.id != null) {
				return false;
			}
		} else if (!id.equals(other.id)) {
			return false;
		}
		return true;
	}

}
